﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;

namespace BezierSegmentDemo
{
    public class LineFigure : Control
    {
        #region StartPoint
        /// <summary>
        /// StartPoint Dependency Property
        /// </summary>
        public static readonly DependencyProperty StartPointProperty = DependencyProperty.Register(
                "StartPoint",
                typeof(Point),
                typeof(LineFigure),
                new FrameworkPropertyMetadata(new Point(0, 0)));

        /// <summary>
        /// Gets or sets the StartPoint property
        /// </summary>
        public Point StartPoint
        {
            get { return (Point)GetValue(StartPointProperty); }
            set { SetValue(StartPointProperty, value); }
        }
        #endregion

        #region EndPoint
        /// <summary>
        /// EndPoint Dependency Property
        /// </summary>
        public static readonly DependencyProperty EndPointProperty = DependencyProperty.Register(
                "EndPoint",
                typeof(Point),
                typeof(LineFigure),
                new FrameworkPropertyMetadata(new Point(200, 0)));

        /// <summary>
        /// Gets or sets the EndPoint property
        /// </summary>
        public Point EndPoint
        {
            get { return (Point)GetValue(EndPointProperty); }
            set { SetValue(EndPointProperty, value); }
        }
        #endregion
    }
}
